<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <v-test>
            <template v-slot:pic>❤</template>
            <template v-slot:msg>周冬雨</template>
        </v-test>
        <v-test>
            <template #pic>☆</template>
            <template #msg>达姆</template>
        </v-test>
    </div>
</body>
<script src="../../js/vue.js"></script>
<script>
    Vue.config.productionTip = false;
    Vue.component("v-test",{
        template:`<div>
                        <slot name="pic"></slot>
                        <strong> v-test </strong>
                        <slot name="msg"></slot>
                   </div>`
    })

    new Vue({
        el:"#app"
    })
</script>
</html>